package com.fhz.shop.ui.dashboard.datasource.remote;

import androidx.lifecycle.LiveData;

import com.fhz.shop.api.ServiceApi;
import com.fhz.shop.callback.ApiResponse;
import com.fhz.shop.entity.Category;
import com.fhz.shop.entity.GoodsInfoLocal;
import com.fhz.shop.entity.PageHelper;

import java.util.List;

import javax.inject.Inject;

import retrofit2.http.Query;

/**
 * 时间:2023/8/22
 *
 * @author Mr.Feng
 * 简述: TODO
 */
public class DashboardRemoteDataSource {

    @Inject
    ServiceApi mServiceApi;

    @Inject
    public DashboardRemoteDataSource() {
    }

    public LiveData<ApiResponse<List<Category>>> getCategory( int type){
        return mServiceApi.getCategory(type);
    }

}

